<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>W3Cschool教程(w3cschool.cn)</title>
</head>
<body>
<!--<a href="http://192.168.124.200" target="_blank"> 访问AI设备  </a>-->
<br>
<br>
<script type="text/javascript">

    var url = "http://192.168.100.200";
    window.location.assign(url);

    function login(username, password) {
    var xhr = new XMLHttpRequest();
    xhr.open("POST", "/login", true);
    xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    xhr.onreadystatechange = function () {
        if (xhr.readyState === 4 && xhr.status === 200) {
            var response = JSON.parse(xhr.responseText);
            console.log(response);
            // 处理登录成功后的逻辑，例如跳转到主页
        }
    };
    var data = "username=" + encodeURIComponent(username) + "&password=" + encodeURIComponent(password);
    xhr.send(data);
    }


</script>


<!--<p>如果你将 target 属性设置为 "_blank", 链接将在新窗口打开。</p>-->

</body>
</html>